package lesson02;

public class Test01 {
    public static void f1(int a){
        a++;
        System.out.println("方法内部的a："+a);
    }
    public static int[] f2(int [] ary){
        ary = new int[]{100};
        ary[0]++;
        System.out.println("方法内部的ary[0]："+ary[0]);
        return ary;
    }
    public static void main(String[] args) {
//        int a = 100;
//        f1(a);
//        System.out.println("方法外部的a："+a);
        int [] ary = {100};
        ary = f2(ary);
        System.out.println("方法外部的ary[0]："+ary[0]);
    }
}
